<?php
use think\facade\Route;

// 修正后的路由配置
Route::post('api/contact', 'app\controller\controller2@index');
